package cn.com.thinvent.dispatch.service.biz.impl;

import cn.com.thinvent.dispatch.dao.MenuManagementMapper;
import cn.com.thinvent.dispatch.entity.MenuManagement;
import cn.com.thinvent.dispatch.service.biz.MenuManagementService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class MenuManagementServiceImpl implements MenuManagementService {

    @Resource
    private MenuManagementMapper menuManagementMapper;

    @Override
    public List<MenuManagement> selectPage(int offset, int limit, String cuisineType) {
        return menuManagementMapper.selectPage(offset, limit, cuisineType);
    }

    @Override
    public int count(String cuisineType) {
        return menuManagementMapper.count(cuisineType);
    }

    @Override
    public List<MenuManagement> findMenuManagementsByIds(List<String> ids) {
        return menuManagementMapper.findMenuManagementsByIds(ids);
    }
}
